package com.rtx.edi.platform.express.auth.service.impl;

import org.springframework.stereotype.Service;

import com.rtx.edi.platform.express.auth.service.ExpTemplatesService;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.CainiaoCloudprintStdtemplatesGetRequest;
import com.taobao.api.response.CainiaoCloudprintStdtemplatesGetResponse;
/**
 *  获取平台面单模板信息  
 * @author luoqiongli
 *
 */
@Service
public class ExpTemplatesServiceImpl implements ExpTemplatesService {

	@Override
	public CainiaoCloudprintStdtemplatesGetResponse getTbTemplate(String getway,String appkey,String appsecret) throws Exception {
		TaobaoClient client = new DefaultTaobaoClient(getway, appkey, appsecret);
		CainiaoCloudprintStdtemplatesGetRequest req = new CainiaoCloudprintStdtemplatesGetRequest();
		CainiaoCloudprintStdtemplatesGetResponse rsp = client.execute(req);

		return rsp;
	}

	@Override
	public Object getDyTemplate() throws Exception {
		
		
		return null;
	}

	@Override
	public Object getPddTemplate() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object getJdTemplate() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object getXhsTemplate() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object getDwTemplate() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

}
